/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.Toto.question2.service.internal;

import za.ac.cput.Toto.question2.composition_model.BMW;
import za.ac.cput.Toto.question2.composition_model.Toyota;
import za.ac.cput.Toto.question2.service.Car;




/**
 *
 * @author 210012285
 */
public class DriveCar implements Car{


     @Override
    public double calPetrolUsed(Toyota tyt) {
        double pricePerlitre ;
         
         pricePerlitre = tyt.getLitres()* 10.50;  
         return  pricePerlitre;
    }
    
}
